Acceleration Code
Example (Java)

public class MyFrameBuffer implements FrameBuffer {

  // sets up acceleration
  private native void mySetDrawOps(
	sun.awt.aw.FrameBuffer fb,
	int depth, 
	int regBlockAddr, 
		int fbaddr);
		
  public void init() {
  // ... set up memory mappings etc ...
  
  mySetDrawOps(sun.awt.aw.FrameBuffer.fb, 
	currentMode.depth,
	RegBlockSpace.getVirtualAddress(),
	fbSpace.getVirtualAddress());
  }
}

Return to Tracks